
Namespace Aricie.DNN.Services.Url.FriendlyUrl

    Public Class Debug

        Public Const DebugType As String = "FUP"
        Public Const RequestTiming As String = "FUP Timing"

        Public Class Labels

            Public Const MissingMandatoryParameter As String = "Group skipped because of missing Mandatory Parameter"

            Public Const ApplicationStartTime As String = "Application Start Time"
            'object creation
            Public Const CreateMatchRegex As String = "Create Rule Matching Regex"
            Public Const CreateHacks As String = "Create Parameter Hacks list"
            Public Const CreateReaderEscapers As String = "Create Portal Reader Escaper list"
            Public Const CreateReaderExtensions As String = "Create Portal Reader Lookup Extensions list"
            Public Const CreateLookupDictionaries As String = "Create Lookup Dictionaries"
            Public Const CreateVarRegexsRadixTree As String = "Create Variable Url Regexs Radix tree"
            Public Const CreateNoRewriteDictionary As String = "Create No Rewrite Dictionary"
            Public Const CreatePermanentRedirectsDico As String = "Create Permanent Redirections Dictionary"
            Public Const PersistMappings As String = "Persisting updates to DB"


            Public Const MappingNotFound As String = "Mapping not found in DB"
            Public Const NewMapping As String = "Create New Mapping in DB"

            'limit conditions
            Public Const DuplicateMappingInserts As String = "Failed to insert duplicate Mapping"
            Public Const DuplicateMappingUpdates As String = "Failed to update duplicate Mapping"
            Public Const OverridingExistingMapping As String = "Overriding Existing Mapping in DB"
            Public Const Redirect301 As String = "301 Redirect"
            Public Const AttemptToSaveExistingMapping As String = "Attempt To Save Existing Mapping"
            Public Const ExistingMappingDiffersByCase As String = "Existing Mapping only differs by case"
            Public Const FailedToRewriteUrl As String = "Failed to rewrite Url"
            Public Const SavingQueryLessMapping As String = "Saving Query Less Mapping"
            Public Const UrlToLong As String = "Url longer that max length in DB"
            Public Const FoundMonitoredString As String = "A monitored string was generated as part of a friendly url "
            Public Const UrlStoreFull As String = "Url Store Full, deleting 10% older urls"
            Public Const BlackListedUrlReverted As String = "Black listed friendly url processed"

        End Class

        Public Class TimingSteps

            Public Const BeginRequest As String = "Start Begin Request"
            Public Const StartLookup As String = "Start Real Url Lookup"
            Public Const StartPreloadMappings As String = "Preload Mappings"
            Public Const StartDirectLookup As String = "Searched Direct Store mapping"
            Public Const QueryLessLookedUp As String = "Searched Store mapping without querystring"
            Public Const RadixLookedup As String = "Searched Variable Urls Radix Tree"
            Public Const RegexLookedup As String = "Searched Variable Urls Regex"
            Public Const EndLookup As String = "End Real Url Lookup"
            Public Const EndBeginRequest As String = "End Begin Request"

            Public Const StartFriendlyUrl As String = "Start Friendly Url Rewrite"
            Public Const UrlInputResolved As String = "Url Input Resolved"
            Public Const UrlStrategyResolved As String = "Url Strategy Resolved"
            Public Const FriendlyUrlProcessed As String = "Friendly Url Processed"
            Public Const EndFriendlyUrl As String = "End Friendly Url Rewrite"
            Public Const CurrentFUPEval As String = "Current Request Friendly Url Evaluated"

            Public Const StartPostRequestHandler As String = "Start Post Request Handler"
            Public Const EndPostRequestHandler As String = "End Post Request Handler"
            Public Const StartEndRequest As String = "Start EndRequest"
            Public Const MappingPersisted As String = "Mapping Set for Persistence"
            Public Const EndEndRequest As String = "End EndRequest"
            Public Const PermanantRedirect As String = "Permanant Redirect"
            Public Const StartValidateCache As String = "Start Validate Cached Response"
            Public Const EndValidateCache As String = "End Validate Cached Response"


        End Class

    End Class

End Namespace